package com.water_work_form.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuke
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OperateLog对象", description="")
public class OperateLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "操作名称")
    private String name;

    @ApiModelProperty(value = "操作时间")
    private String date;

    @ApiModelProperty(value = "操作地址")
    private String ip;

    @ApiModelProperty(value = "操作类型")
    private String type;

    public OperateLog(Integer id, String name, String date, String ip) {
        this.id = id;
        this.name = name;
        this.date = date;
        this.ip = ip;
    }
}
